package br.ufrn.projetoDB.gerenciadorGaragem.persistencia.util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;

import org.postgresql.core.Logger;
import org.postgresql.core.ProtocolConnection;

public class ConnectionFactory{

	public Connection getConnection() {
        try {
            return DriverManager.getConnection(
          "jdbc:postgresql://localhost:5432/gerenciador_garagem", "gerenciadorGaragem", "admin");
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }
    }
	
}
